import { createMemoryHistory, createRouter } from 'vue-router'

import Layout from '../layout/index.vue'

export const routes = [
    {
        path: '/',
        component: Layout,
        meta: {
            title: "首页"
        },
        redirect: '/test',
        children: [
            {
                path: '/test', component: () => import('@/views/function/print/pdfPrint.vue'), meta: {
                    title: "test"
                }
            },
            {
                path: '/test2', component: () => import('@/views/tests.vue'), meta: {
                    title: "test"
                }
            },
        ]
    },
]

const router = createRouter({
    history: createMemoryHistory(),
    routes,
})
export default router